﻿using UnityEngine;
using System.Collections;
using UI;

public class ContinueGiftGetItem : MonoBehaviour
{
    public CommonIcon icon;
    public UILabel nameLabel;

    public void Init(ProtoBuf.Message.BaseResource res)
    {
        icon.SetData(res.id, true, res.num);
        nameLabel.text = TableTextBlo.GetText(CommonMethod.GetObjectNameTextId(res.id));
    }
}